package com.love.marriage.userMembershipHistory.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.love.marriage.common.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * description:  用户会员历史记录表类
 * author:       mybatisPlus
 * createDate: 2025-06-27 07:07:06
 * version:      1.0.0
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("user_membership_history_t")
@Schema(description = "用户会员历史记录表")
public class UserMembershipHistory extends BaseEntity<UserMembershipHistory>{

    @Schema(description = "操作类型: 0=创建, 1=更新, 2=删除", type = "Boolean", implementation = Boolean.class)
    @TableField("operation_type")
    private Integer operationType;

    @Schema(description = "原表主键ID", type = "Long", implementation = Long.class)
    @TableField("original_id")
    private Long originalId;

    @Schema(description = "用户ID", type = "Long", implementation = Long.class)
    @TableField("user_id")
    private Long userId;

    @Schema(description = "会员ID", type = "Long", implementation = Long.class)
    @TableField("membership_id")
    private Long membershipId;

    @Schema(description = "会员开始时间", type = "LocalDateTime", implementation = LocalDateTime.class)
    @TableField("start_time")
    private LocalDateTime startTime;

    @Schema(description = "会员结束时间", type = "LocalDateTime", implementation = LocalDateTime.class)
    @TableField("end_time")
    private LocalDateTime endTime;

}
